package com.lego.service.impl;

import java.util.List;

import com.lego.bean.Seller;
import com.lego.bean.User;
import com.lego.dao.SellerDao;
import com.lego.dao.impl.SellerDaoImpl;
import com.lego.service.SellerService;

public class SellerServiceImpl implements SellerService {
	
	SellerDao sd = new SellerDaoImpl();
	
	@Override
	public Seller selcetSeller(int sellerId) {
		return sd.selcetSeller(sellerId);
	}

	@Override
	public Seller selectBySellerName(String brandName) {
		return sd.selectBySellerName( brandName);
	}

	@Override
	public Seller selectSeller(String brandName, String sellerName) {
		return sd.selectSeller(brandName, sellerName);
	}

	@Override
	public int addSeller(String sellerName, String sellerPwd, String brandName, String sellerImg) {
		return sd.addSeller( sellerName,  sellerPwd,  brandName,  sellerImg);
	}

	@Override
	public int querySellerRow(String brandName) {
		// TODO Auto-generated method stub
		return sd.querySellerRow(brandName);
	}

	@Override
	public List<Seller> queryAllSeller(String brandName, int pageNum, int pageSize) {
		// TODO Auto-generated method stub
		return sd.queryAllSeller( brandName,pageNum,pageSize);
	}

	@Override
	public int editorSeller(int id, String pwd) {
		// TODO Auto-generated method stub
		return sd.updateSellerPwd(id, pwd);
	}

}
